// 生产
// const host = 'http://127.0.0.1:8787';
// const host = "http://h5.coleshop.ngu98.top";

const portalUrl = "https://a.app.qq.com/o/simple.jsp?pkgname=com.xxx.xxx"; //应用宝下载地址或自己的应用发布url

let BASE_URL = 'http://127.0.0.1:8787';
if (process.env.NODE_ENV === "development") {
  // #ifdef H5-DEV
  BASE_URL = 'http://127.0.0.1:8787'; //运行测试环境
  // #endif

  // #ifndef H5-DEV
  BASE_URL = "http://h5.coleshop.ngu98.top"; //运行正式环境
  // #endif
} else {
  // #ifdef H5-DEV
  BASE_URL = "http://127.0.0.1:8787"; //发行测试环境
  // #endif

  // #ifndef H5-DEV
  BASE_URL = "http://h5.coleshop.ngu98.top/prod-api"; //发行正式环境
  // #endif
}

export default {
  host: BASE_URL,
  portalUrl,
};
